// 引入vue路由
import VueRouter from "vue-router";
// 引入About组件
import About from "../components/About";
// 引入Home组件
import Home from "../components/Home";

// 创建并暴露路由
export default new VueRouter({
    // 注意是routes  而不是 routers
    routes:[
        {
            path:'/about',
            component:About
        },
        {
            path:'/home',
            component:Home
        },
    ]
})